﻿namespace ApprovalFlow_WebApi.Model
{
    /// <summary>
    /// ip地址数据
    /// </summary>
    public sealed class IpApiResponse
    {
        /// <summary>
        /// ip
        /// </summary>
        public string? ip { get; set; }

        /// <summary>
        /// 请求状态码
        /// </summary>
        public int ret { get; set; }

        /// <summary>
        /// 请求数据
        /// </summary>
        public addressData data { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Decimal qt { get; set; }
    }

    /// <summary>
    /// 地址数据
    /// </summary>
    public class addressData
    {
        /// <summary>
        /// 国家
        /// </summary>
        public string country { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        public string country_code { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        public string prov { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        public string city { get; set; }

        /// <summary>
        /// 市编码
        /// </summary>
        public string city_code { get; set; }

        /// <summary>
        /// 缩写编码
        /// </summary>
        public string city_short_code { get; set; }

        /// <summary>
        /// 区域
        /// </summary>
        public string area { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string post_code { get; set; }

        /// <summary>
        /// 区域编码
        /// </summary>
        public string area_code { get; set; }

        /// <summary>
        /// 网关
        /// </summary>
        public string isp { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public string lng { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public string lat { get; set; }

        /// <summary>
        /// 长ip
        /// </summary>
        public string long_ip { get; set; }

        /// <summary>
        /// 大区
        /// </summary>
        public string big_area { get; set; }
    }
}
